package com.framework.loippi.service;

import com.framework.loippi.dto.api.dto.MedicineOrderParam;
import com.framework.loippi.entity.TOrder;
import com.framework.loippi.support.APIPrincipal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SERVICE - TOrder(订单管理)
 *
 * @author wmj
 * @version 2.0
 */
public interface TOrderService extends GenericService<TOrder, Long> {
    public List<TOrder> findListByPage(Object parameter);

    public Long deletes(Object parameter);

    String buildOrderId(MedicineOrderParam param, APIPrincipal principal);

    List<TOrder> findAllByUserId(@Param(value = "userId") Long userId, @Param(value = "cur") Integer cur, @Param(value = "pageSize") Integer pageSize);

    TOrder findDetailById(Long orderId);

    List<TOrder> findAllOrder();

    List<TOrder> findToExcel();
}
